//package org.blackcat.dao.mongo;
//
//import com.alibaba.fastjson.JSON;
//import com.mongodb.MongoClient;
//import com.mongodb.client.MongoCollection;
//import org.bson.Document;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
//import java.util.Date;
//
///**
// * Created by Duo Duo on 2017/1/10.
// * Mongodb操作
// */
////@Component
//public class MongoHandle {
//
//    @Autowired
//    private MongoManager mongoManager;
//
//    public void insertOne(Object obj){
//        MongoCollection<Document> collection = mongoManager.getMongoDefaultDB().getCollection("temperature");
//        String json = JSON.toJSONString(obj);
//        Document document = Document.parse(json);
//        collection.insertOne(document);
//    }
//
//}
